''' This demonstrates how to write some german letters to OEM 850 or ACP Files
'''

import System
from System import *


line = ''
line = line + chr(228) + chr(246) + chr(252) + chr(223)+ chr(65)+ chr(196)+ chr(214)+ chr(220)+ chr(181)
line = line + chr(128)+ chr(167)+ chr(176) + '\n'

print line

file = IO.FileStream('oem.txt', IO.FileMode.Create, IO.FileAccess.Write)
sw = IO.StreamWriter(file, Text.Encoding.GetEncoding(850))
sw.Write(line)
sw.Close()

file = IO.FileStream('ansi.txt', IO.FileMode.Create, IO.FileAccess.Write)
sw = IO.StreamWriter(file, Text.Encoding.Default)
sw.Write(line)
sw.Close()

